package com.edu.exam.enums.examination.paper;

/**
 * 分割存储位置枚举
 */
public enum SegmentedStorageLocation {
    LOCAL("LOCAL", "本地存储"),
    REMOTE("REMOTE", "远程存储"),
    CLOUD("CLOUD", "云存储"),
    DATABASE("DATABASE", "数据库"),
    FILE_SYSTEM("FILE_SYSTEM", "文件系统"),
    NETWORK("NETWORK", "网络存储"),
    FTP("FTP", "FTP存储"),
    SFTP("SFTP", "SFTP存储"),
    HTTP("HTTP", "HTTP存储"),
    HTTPS("HTTPS", "HTTPS存储"),
    SMB("SMB", "SMB存储"),
    NFS("NFS", "NFS存储"),
    OBJECT_STORAGE("OBJECT_STORAGE", "对象存储"),
    BLOCK_STORAGE("BLOCK_STORAGE", "块存储"),
    ARCHIVE("ARCHIVE", "归档存储"),
    CACHE("CACHE", "缓存"),
    TEMP("TEMP", "临时存储"),
    BACKUP("BACKUP", "备份存储"),
    REPLICA("REPLICA", "副本存储"),
    PRIMARY("PRIMARY", "主存储"),
    SECONDARY("SECONDARY", "次存储"),
    EXTERNAL("EXTERNAL", "外部存储"),
    INTERNAL("INTERNAL", "内部存储"),
    SHARED("SHARED", "共享存储"),
    DEDICATED("DEDICATED", "专用存储");

    private final String code;
    private final String description;

    SegmentedStorageLocation(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    public String getDisplayName() {
        return description;
    }
}
